package ltd.hxya.novel.crawl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import ltd.hxya.novel.crawl.bean.CrawlVo;
import ltd.hxya.novel.crawl.entity.CrawlSource;

import java.util.List;

/**
 * <p>
 * 爬虫源表 服务类
 * </p>
 *
 * @author hxya
 * @since 2022-09-18
 */
public interface ICrawlSourceService extends IService<CrawlSource> {

    CrawlVo defaultCrawlSource();

    CrawlVo getCrawlSourceById(Integer crawlSourceId);

    List<CrawlVo> crawlSourceList();

    void updateDefaultCrawlSource(CrawlSource crawlSource);

    void changeCrawlStatus(CrawlSource crawlSource);

    void addCrawlSource(CrawlSource crawlSource);

    void deleteCrawlSource(Integer[] ids);

    void updateCrawlSource(CrawlSource crawlSource);

    CrawlVo crawlSourceByBookId(String bookId);
}
